#include <iostream>
#include "EpollServer.hpp"

using namespace protocol_ns;
using namespace std;

void HelloWorld(const Request &req,Response& resp)
{
    resp.setBody("hello world","text/html");
}

void HelloInternet(const Request &req,Response& resp)
{
    resp.setBody("hello internet","text/html");
}



int main()
{   
    EpollServer svr;

    svr.initServer();
    svr.Get("/hi",HelloWorld);
    svr.Get("/inter",HelloInternet);
    
    svr.DisPatcher();
    
    return 0;
}